package com.eco.fanliapp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eco.fanliapp.common.response.ServerResponse;
import com.eco.fanliapp.entity.SyUserIntegral;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2019-12-24
 */
public interface ISyUserIntegralService extends IService<SyUserIntegral> {

    /**
     * 积分查询
     * @param userId
     * @return
     */
    ServerResponse integralQuery(Long userId);

    /**
     * 订单兑换积分
     * @param userId
     * @param orderId
     * @return
     */
    ServerResponse integralExchange(Long userId, Long orderId);

    /**
     * 积分兑换商品
     * @param userId
     * @param goodsId
     * @return
     */
    ServerResponse integralExchangeGoods(Long userId, Long goodsId);

    /**
     * 积分详情查看
     * @param userId
     * @param pageSize
     * @param pageNum
     * @param type
     * @return
     */
    ServerResponse integralList(Long userId, Integer type, Integer pageNum, Integer pageSize);

    /**
     * 积分商品列表
     * @param userId
     * @param pageNum
     * @param pageSie
     * @return
     */
    ServerResponse integralGoodsList(Long userId, Integer pageNum, Integer pageSie);
}
